﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Examin
{
    /// <summary>
    /// 节点审批人配置
    /// </summary>
    [Table("approvalassigneemodel")]
    public class ApprovalAssigneeModel:BaseEntity
    {
        /// <summary>
        /// 节点ID
        /// </summary>
        public long nodeId { get; set; }
        
        /// <summary>
        /// 审批人用户ID
        /// </summary>
        public long? userId { get; set; }
        
        /// <summary>
        /// 审批人角色ID
        /// </summary>
        public long? roleId { get; set; }
        
        /// <summary>
        /// 审批人部门ID
        /// </summary>
        public long? departmentId { get; set; }
        
        /// <summary>
        /// 分配类型（1：用户，2：角色，3：部门）
        /// </summary>
        public int assignType { get; set; }
        
        /// <summary>
        /// 审批人用户名
        /// </summary>
        public string assignee { get; set; }
        
        /// <summary>
        /// 类型：用户/角色
        /// </summary>
        public string assigneeType { get; set; }
    }
}